<template>
  <div class="forbidden-container">
    <div class="forbidden-content">
      <div class="forbidden-text">
        <h1>403</h1>
        <h2>抱歉，您没有权限访问此页面！</h2>
        <p>请确认您是否有权限访问此页面，或联系管理员获取权限。</p>
        <div class="forbidden-actions">
          <el-button type="primary" @click="$router.push('/')">
            <i class="el-icon-s-home"></i> 返回首页
          </el-button>
          <el-button @click="$router.go(-1)">
            <i class="el-icon-back"></i> 返回上一页
          </el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Forbidden'
}
</script>

<style scoped>
.forbidden-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
}

.forbidden-content {
  display: flex;
  align-items: center;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease-out;
}

.forbidden-text {
  text-align: center;
}

.forbidden-text h1 {
  font-size: 72px;
  color: #409EFF;
  margin: 0;
  line-height: 1;
  font-weight: 600;
}

.forbidden-text h2 {
  font-size: 24px;
  color: #303133;
  margin: 20px 0;
  font-weight: 500;
}

.forbidden-text p {
  font-size: 16px;
  color: #606266;
  margin: 0 0 30px 0;
}

.forbidden-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.forbidden-actions .el-button {
  padding: 12px 24px;
}

.forbidden-actions .el-button i {
  margin-right: 8px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .forbidden-content {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .forbidden-text {
    text-align: center;
  }
  .forbidden-actions {
    justify-content: center;
  }
}
</style> 